package com.asialjim.wechat.spring.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * <h1><em>ASIAL JIM JAVA DOC</em></h1><hr/>
 * <h2>CLASS DESCRIPTION <i>[ NAME: WeChatApplicationEventListener ]</i></h2><strong>
 * <p>
 * </strong><p><p><em>Copyright &copy; Asial Jim Co., LTD</em><hr/>
 *
 * @author Asial Jim &nbsp;&nbsp; <span>Email:<a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
 * @version 1.0.0
 * @since 2021/3/30   &nbsp;&nbsp; JDK 8
 */
@Slf4j
@Component
public class WeChatApplicationEventListener implements ApplicationListener<WeChatApplicationEvent> {
    @Override
    public void onApplicationEvent(WeChatApplicationEvent weChatApplicationEvent) {
        log.info("\r\n\twe chat application event got:{}",weChatApplicationEvent.getSource());
    }
}
